package com.fjec.common.ys.protocol;

import org.apache.commons.collections.MapUtils;

import java.util.HashMap;

public class ResUpload extends HashMap<String, Object> {

    public boolean isSuccess() {
        return MapUtils.getBooleanValue(this, "isSuccess", false);
    }

    public String getToken() {
        return MapUtils.getString(this, "token");
    }

    public String getErrorCode() {
        return MapUtils.getString(this, "errorCode");
    }

    public String getErrorMsg() {
        return MapUtils.getString(this, "errorMsg");
    }
}
